package com.siae.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("item")
@Schema(name = "item",description = "项目信息")
public class Item {
    public static final String TEACHER = "teacher";
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Schema(name = "name",description = "项目名称")
    @TableField(value = "name")
    private String name;
    @Schema(name = "image",description = "项目图片")
    @TableField(value = "image")
    private Integer image;
    @Schema(name = "type",description = "项目类别")
    @TableField(value = "type")
    private Integer type;
    @Schema(name = "student",description = "项目负责人（学生）")
    @TableField(value = "student")
    private Integer student;
    @Schema(name = "team",description = "项目团队")
    @TableField(value = "team")
    private Integer team;
    @Schema(name = TEACHER,description = "指导教师")
    @TableField(value = "teacher")
    private Integer teacher;
    @Schema(name = "college",description = "所属学院")
    @TableField(value = "college")
    private Integer college;
    @Schema(name = "files",description = "项目文档")
    @TableField(value = "files")
    private Integer files;
    @Schema(name = "status",description = "项目状态（草稿：0、已提交：1、审核中：2、已通过：3、已驳回：4、已完成：5）")
    @TableField(value = "status")
    private Integer status;
    @Schema(name = "createdAt",description = "创建时间")
    @TableField(value = "created_at")
    private Date createdAt;
    @Schema(name = "updatedAt",description = "修改时间")
    @TableField(value = "updated_at")
    private Date updatedAt;
    @Schema(name = "isDel",description = "逻辑删除 0：未删 1：已删")
    @TableField(value = "is_del")
    private Integer isDel;
}
